﻿<%@ Page Title="Домашняя страница" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="users.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

    <h2>
            Enter new twit:
    </h2>
    
    <script runat="server">
       
    </script>


<!-- Security Note: The SqlDataSource uses a FormParameter,
     Security Note: which does not perform validation of input from the client.
     Security Note: To validate the value of the FormParameter, handle the Inserting event. -->

     
      <asp:textbox   id="NameBox"  runat="server" Width="472px" >test</asp:TextBox>
     
      <asp:RequiredFieldValidator id="RequiredFieldValidator1"
        runat="server"  ControlToValidate="NameBox"
        Display="Static" ErrorMessage="Please enter a  text." />
     
     <br />   
      Select nickname:<asp:DropDownList ID="NickNameBox" runat="server" 
        ToolTip="Select receiver">
        <asp:ListItem></asp:ListItem>
        <asp:ListItem>spechen</asp:ListItem>
        <asp:ListItem>1ivan</asp:ListItem>
        <asp:ListItem>2petr</asp:ListItem>
    </asp:DropDownList><asp:button   id="Button1"  runat="server"   text="post"   onclick="InsertUser" />
      
      <asp:Label ID="Label2" runat="server" BorderColor="#CCCCCC"></asp:Label>
 
    <h2>
            Filter&nbsp; <asp:textbox   id="id_user"  runat="server" >%</asp:TextBox>
       <asp:RequiredFieldValidator
        id="RequiredFieldValidator2"
        runat="server"
        ControlToValidate="id_user"
        Display="Static"
        ErrorMessage="Please enter filter properties" />


            <asp:button   id="Button2"  runat="server"   text="Set filter" onclick="Button1_Click"   
                 />


   
    </h2>
 
      <br />

 
      <div class="footer">
        
        
          <asp:GridView ID="GridView1" runat="server" Width="888px">
          </asp:GridView>
        
        
    </div>

</asp:Content>
